Skip to main content
Version: Development (main)

:::tip Experimental This documents unreleased main — not a released, committed API. See the API stability policy and use Stable instead. :::

Robotiq::ConditionVariable Class

Wait/notify handle: lets threads block until another thread signals.

Included Headers​

#include <platform.hpp>

Members​

Public Destructor
~ConditionVariable ()=default
Public Member Functions
voidwaitUntil (Mutex &mutex, std::chrono::steady_clock::time_point timePoint)=0

Unlock mutex, block until notified or timePoint passes, then relock it. More...

voidnotifyAll () noexcept=0

Public Destructor​

~ConditionVariable()​

virtual Robotiq::ConditionVariable::~ConditionVariable ()
virtual default

Public Member Functions​

notifyAll()​

virtual void Robotiq::ConditionVariable::notifyAll ()
noexcept

Unblocks every thread currently waiting. Called from destructors, so it cannot throw; waking waiters has no failure worth reporting.

waitUntil()​

virtual void Robotiq::ConditionVariable::waitUntil(Mutex &mutex,
std::chrono::steady_clock::time_pointtimePoint
)

Unlock mutex, block until notified or timePoint passes, then relock it.

Parameters
mutex

The lockable object the caller holds; released while blocked.

timePoint

The point in time to return if not notified.


The documentation for this class was generated from the following file:

  • platform.hpp

Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.